package com.itheima.chapter03.characterstring;
/*
    敏感词替换
 */

import java.util.Scanner;

public class domestring11 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一串字符：");
        String s = sc.nextLine();
        String result = s.replace("TMD", "***");
        System.out.println(result);
    }
}
